/**
 * @filename:OperLog 2022-2-21
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.admin.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.FieldFill;


/**   
 * @Description:TODO(操作日志实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_oper_log")
@ApiModel(value="sys_oper_log对象", description="操作日志表")
public class OperLog extends Model<OperLog> {

	private static final long serialVersionUID = 5402147608218150L;
	
	@TableId(value ="oper_id", type = IdType.AUTO)  
	@ApiModelProperty(name = "oper_id" , value = "编号")
	private Long oper_id;
    
	@ApiModelProperty(name = "title" , value = "模块标题")
	private String title;
    
	@ApiModelProperty(name = "business_type" , value = "业务类型")
	private Integer business_type;
    
	@ApiModelProperty(name = "method" , value = "方法名称")
	private String method;
    
	@ApiModelProperty(name = "request_method" , value = "请求方式")
	private String request_method;
    
	@ApiModelProperty(name = "operator_type" , value = "操作类别")
	private Integer operator_type;
    
	@ApiModelProperty(name = "user_id" , value = "操作人员")
	private Long user_id;
    
	@ApiModelProperty(name = "dept_name" , value = "部门名称")
	private String dept_name;
    
	@ApiModelProperty(name = "oper_url" , value = "请求URL")
	private String oper_url;
    
	@ApiModelProperty(name = "oper_ip" , value = "主机地址")
	private String oper_ip;
    
	@ApiModelProperty(name = "oper_location" , value = "操作地点")
	private String oper_location;
    
	@ApiModelProperty(name = "oper_param" , value = "请求参数")
	private String oper_param;
    
	@ApiModelProperty(name = "json_result" , value = "返回参数")
	private String json_result;
    
	@ApiModelProperty(name = "status" , value = "操作状态")
	private Integer status;
    
	@ApiModelProperty(name = "error_msg" , value = "错误消息")
	private String error_msg;
    
	@TableField(value = "create_time",fill=FieldFill.INSERT) 
	@ApiModelProperty(name = "create_time" , value = "操作时间")
	private Date create_time;
    

	@Override
    public Serializable pkVal() {
        return this.oper_id;
    }
   
}
